package com.hnyyjsxy;

/**
 * Project：sx
 * Date：2021/4/27
 * Time：22:08
 *
 * @author hs
 * @version 1.0
 */
public class AlipayConfig {

    // 应用ID,您的APPID，是沙箱应用的APPID 不是商家的UID值
    public static String app_id = "2021000117646379";//

    // 私钥  去保存的本地私钥文件中查找
    public static String merchant_private_key = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCT+/YfONbVSmX6sS999ahIe+6D7Nz5G/prTEYoq3Pmpc/e7PE0kb3enINz/ePNxZOiw35FgRPphbzACgViqruH1tErmY86VC5TR9YFwKrEc7S2SAwffaLc+00s+i9Nagwyv2xa7GIP0Hs/4jIE7BOOwUBa062ES0c/lZ7pkoiTaJ2oMf5mO4vnYwtdF6ID1qniKI1WizAql3KgMfpb9lRpRSsh6qA430dnAftOqkEJrzbOuDfSfFwHvd473WBHA/62ZDgc4xz+myFJRW25QKH+4UgY/Z9wrGkOerez1e/xI1NVbmMVOI9xPLVAE3/5DQYOQ8vjvU98Wv5BlxKSEhkZAgMBAAECggEARuZVwhmyXBg8CcLwdRHIYYn2+X/3UuaDsPqnNn8GlX/luvGcksosxMYJ+P2wMfsyQ64UBmrURnLLvtpOQDp6hJd4OcJlq9V/KGlncfQgHOUutJKKNGA2Mle4Xw8ysI1ZcMrjuCA+z0Lcefv+aPtOV3vhQGLgZFzIsv8VVuTcyHqBIsc/YQM1JIII2MOEjVqTrgdND/8FQZtxF1CPeP7X4F1/AvP0wYZLEH/QC//UIW8r+8B6Uh6bjQgT6/PIjTJFg+uh8EboDob97DAsLfamDwebzCvfan7Uoqfr3lEt2SDOJKBNlYDwak0wz56riPITuZoPgXgtkwQtuGb4NsndfQKBgQDNJxuiz7w2W5q+aW7B60u3HauDwgOjfBWduespSBY8g8RdB6oU+Vi8zFao5Mo3fSh4knmSKByfizyoFAYjtpLGh5Updj46f81Cb2y36PzIxGYciqdDKwFONsqwFkkY3HQllY2qd2Mmnr6JBsYvyV+LHm3QlgcciB5XwmE70+LJGwKBgQC4qYYSE8HasFscbRCc+OQq7fJ9mMS4awa0oaV+FzDsqrt8+8J7kNYWL/hjk9LxO/JP4iYfNzICEWyy24Fld/fQSTcwqqHZXDwKP6M01o+Gkx3ReVI/GOXGD/bPl+ZPq9JVMNofogMNI2yLdkiRHNrx2lJOy59+Api5zHz4R1gd2wKBgQCQNIQ9jo47G2sLm2rqTq37OpTcWd1a5pb/NrexXeWbhffaeM+6TIdutqfXsnLeTFDNaBCihyWPlDz/3ItwQR6tBJL6AQ6+6iTrJQ2jvNcrfLpWJ7RpB2q0gtk4q4GYQyY1YQmioKcGd6FxClz3LDLHxIzmiP7YtGm3wH++oTMRrwKBgQCvHawTloLeZSFx2ofHpEuT3mR38JiVHoGUaDptUYbG2L3Fr2XmEhrDnagankOLGsMWOCrYrVoSFf4Tuw+BbvwlnFjnINktLEePnHukDti60OaVEE0Lowu7AMaYZL82zIVA3nvrRZNJMU+tDXWRj2Cdu+ET8guEzueQQrg8JkQMwwKBgQCK8jvfku6bu8nsneMSVwxxyQR4h90M1DgagfhOlLprifuJj0yBMBPf+tQzWubCSiHicm3veiWFGrikXMx8M7oqxAu/Re1cqjO3llvWr9Wrd/DAgAG3cH4zTz0kJYJPH/eFG02fnY7LEyLuogJacMR9yikQpuZO3LJIn4T2rEyTPA==";

    // 支付宝公钥  在必看部分-->RSA2 设置查看中查看支付宝公钥  不是应用公钥
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtXU14FeUQ5bCx7mDc3kwhrnNCjMBuagae355Tt1eKU+rx5xkf3hQrMtU5gGNZXaMsUFvLDzqaCynBCc9YFqdjBJ9MrKWplWO/I5OnsX935mIElcLN/Qns4B2LFrKh21uNt9HsXqmptVWl/OWdzcoScG8D/BuwCsKYGp8TP9vWL4xxBXVIh74+NE6GmaVR31nQihEkzzwRVWVzffU19RmMmmt82jrZLoiqmDkbi+xUyFiyJwmVRKwVAp/KPZu7IMxDQO50HIgLy1tJ7BKQWZuEUUeSj4TG98bLlnyrfhNN1rOG2c7nfKSFk9G6ju/oNG0a1UsYVhJKdgaIb4akNrstQIDAQAB";

    // 异步通知   需要公网可访问 采用内网穿透映射公网url
    // 将来放的就是具体异步通知请求
    public static String notify_url = "http://82.156.9.191:8080/dormitory/student_html/stu/asyncNotify";
    // 同步通知   需要公网可访问  采用内网穿透映射公网URL
    public static String return_url = "http://82.156.9.191:8080/dormitory/student_html/stu/syncNotify";//同步通知请求
    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关   dev 代表沙箱环境
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

    // 支付宝网关
    public static String log_path = "D:\\";

    /**
     * 写日志，方便测试（看网站需求，也可以改成把记录存入数据库）
     * @param sWord 要写入日志里的文本内容
     */
//    public static void logResult(String sWord) {
//        FileWriter writer = null;
//        try {
//            writer = new FileWriter(log_path + "alipay_log_" + System.currentTimeMillis()+".txt");
//            writer.write(sWord);
//        } catch (Exception e) {
//            e.printStackTrace();
//        } finally {
//            if (writer != null) {
//                try {
//                    writer.close();
//                } catch (IOException e) {
//                    e.printStackTrace();
//                }
//            }
//        }
//    }
}

